package com.engine.plugin.annual.service;

import com.engine.annual.service.AnnualService;
import com.engine.annual.service.impl.AnnualServiceImpl;
import com.engine.core.cfg.annotation.ServiceDynamicProxy;
import com.engine.core.cfg.annotation.ServiceMethodDynamicProxy;
import com.engine.core.impl.aop.AbstractServiceProxy;

import java.util.Map;

@ServiceDynamicProxy(target = AnnualServiceImpl.class, desc = "功能描述")
public class AnnualInfoService extends AbstractServiceProxy implements AnnualService {

    @Override
    @ServiceMethodDynamicProxy(desc = "功能描述")
    public Map<String, Object> addAnnualService(Map<String, Object> params) {

        System.out.println(getClass().getName() + "在数据添加做一些事。。。");

        //对参数进行预处理
        //TODO

        Map<String, Object> result = (Map<String, Object>) executeMethod(params);

        System.out.println(getClass().getName()+ "在数据添加之后做一些事");

        //对结果进行处理
        //TODO

        return result;
    }

    @Override
    public Map<String, Object> delAnnualService(Map<String, Object> params) {
        return null;
    }

    @Override
    public Map<String, Object> updAnnualService(Map<String, Object> params) {
        return null;
    }

    @Override
    public Map<String, Object> getAnnualService(Map<String, Object> params) {
        return null;
    }
}
